package com.kuang.service;

import com.kuang.dao.TeacherMapper;
import com.kuang.pojo.Teachers;

import java.util.List;

public class TeacherServiceImpl implements TeacherService{

    private TeacherMapper teacherMapper;

    public void setTeacherMapper(TeacherMapper teacherMapper) {
        this.teacherMapper = teacherMapper;
    }


    @Override
    public int addTeacher(Teachers teacher) {
        return teacherMapper.addTeacher(teacher);
    }

    @Override
    public int deleteTeacherByTid(int Tid) {
        return teacherMapper.deleteTeacherByTid(Tid);
    }

    @Override
    public int updateTeacher(Teachers teacher) {
        return teacherMapper.updateTeacher(teacher);
    }

    @Override
    public Teachers queryTeacherByTid(int Tid) {
        return teacherMapper.queryTeacherByTid(Tid);
    }

    @Override
    public List<Teachers> queryAllTeacher() {
        return teacherMapper.queryAllTeacher();
    }
}
